﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="EdEstimaciones.ascx.cs" Inherits="SistemaWeb.Editores.EdEstimaciones" %>
<%@ Register Assembly="Coolite.Ext.Web" Namespace="Coolite.Ext.Web" TagPrefix="ext" %>


<ext:Window ID="popupEditor" runat="server" Collapsible="true" 
            Icon="ApplicationEdit" Title="Estimaciones de la Tarea" 
            Width="400" Height="400" AutoShow="true" Modal="true" ShowOnLoad="false">
    <Body>
        <ext:FitLayout ID="FitLayout1" runat="server">
            <ext:TabPanel ID="TabPanel1" runat="server" ActiveTabIndex="0" Height="300">
                <Tabs>
                    <ext:Tab ID="TabTiempo" runat="server" Title="Estimación Tiempo" Icon="Time" BodyStyle="padding:10px;" AutoDataBind="true">
                        <Body>
                            <ext:FormLayout ID="FormLayout1" runat="server">
                                <Anchors>
                                    <ext:Anchor>
                                        <ext:TextField ID="txtTiempoId" ReadOnly="true" runat="server" FieldLabel="ID" Width="250">
                                        </ext:TextField>
                                    </ext:Anchor>
                                    <ext:Anchor>
                                        <ext:TextField ID="txtTiempoNombre" ReadOnly="true" runat="server" FieldLabel="Tarea" Width="250">
                                        </ext:TextField>
                                    </ext:Anchor>
                                    <ext:Anchor>
                                        <ext:TextField ID="txtTiempo" AllowBlank="false" runat="server" FieldLabel="Tiempo(Hs)" Width="250">
                                        </ext:TextField>
                                    </ext:Anchor>
                                </Anchors>
                            </ext:FormLayout>
                        </Body>
                    </ext:Tab>
                    <ext:Tab ID="TabCosto" runat="server" Title="Estimación Costo" Icon="MoneyDollar" BodyStyle="padding:5px;  AutoDataBind="true">
                        <Body>
                            <ext:FormLayout ID="FormLayout2" runat="server">                                
                                <Anchors>
                                    <ext:Anchor>
                                        <ext:TextField ID="txtCostoId" ReadOnly="true" runat="server" FieldLabel="ID" Width="250">
                                        </ext:TextField>
                                    </ext:Anchor>
                                    <ext:Anchor>
                                        <ext:TextField ID="txtCostoNombre" ReadOnly="true" runat="server" FieldLabel="Tarea" Width="250">
                                        </ext:TextField>
                                    </ext:Anchor>
                                    <ext:Anchor>
                                        <ext:TextField ID="txtCosto" AllowBlank="false" runat="server" FieldLabel="Costo($)" Width="250">
                                        </ext:TextField>
                                    </ext:Anchor>
                                </Anchors>                                
                            </ext:FormLayout>
                        </Body>
                    </ext:Tab>
                </Tabs>
            </ext:TabPanel>
        </ext:FitLayout>
    </Body>
    <Buttons>
        <ext:Button ID="SaveButton" runat="server" Text="Save" Icon="Disk">
            <AjaxEvents>
                <Click OnEvent="Guardar" Failure="Ext.MessageBox.alert('Saving failed', 'Error during ajax event');">
                    <EventMask ShowMask="true" Target="CustomTarget" CustomTarget="={#{popupEditor}.body}" />
                </Click>
            </AjaxEvents>
        </ext:Button>
        <ext:Button ID="CancelButton" runat="server" Text="Cancel" Icon="Cancel">
            <Listeners>
                <Click Handler="#{popupEditor}.hide();" />
            </Listeners>
        </ext:Button>
    </Buttons>
</ext:Window>
